package org.maylove.wuziqi.pojo.question;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Table(name = "question")
@Entity
public class Question {
    @Id
    @Column(name = "question_id")
    Long questionId;
    @Column(name = "content")
    String content;
    @Column(name = "user_id")
    Long userId;
    @Column(name = "answer")
    String answer;


    public Question() {
    }

    public Question(Long questionId, String content, Long userId, String answer) {
        this.questionId = questionId;
        this.content = content;
        this.userId = userId;
        this.answer = answer;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
}
